/****************************************************
          File Name:10-6_imply.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 23 Dec 2014 04:20:16 PM CST
*****************************************************/

#include"10-6.h"
#include<iostream>

Move::Move(double a, double b)
{
    x = a;
    y = b;
}

void Move::showmove() const
{
    using std::cout;

    cout << "x: " << x << "\n";
    cout << "y: " << y << "\n";
}

Move Move::add(const Move & m)
{
    x += m.x;
    y += m.y;

    return *this;
}

void Move::reset(double a, double b)
{
    x = a;
    y = b;
}
